package com.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName(value = "cloud_log_record")
public class CloudLogRecord implements Serializable {

    @TableId
    @ApiModelProperty(value = "编号")
    private String id;

    //请求发起人用户名
    private String reqUser;

    //账号类型
    private String acctType;

    //来源微服务应用名
    private String sourceApplicationName;

    //目标微服务应用名
    private String targetApplicationName;

    //请求时间
    private Date reqTime;

    //请求方法
    private String reqMethod;

    //请求参数
    private String reqParam;

    //请求路径
    private String reqAddr;

    //调用链id
    private String skyTraceId;

    //syslog的traceId
    private String traceId;

    /**
     * 修改默认值为0，保持版本兼容
     */
    @ApiModelProperty(value = "删除标志")
    private Integer delFlag = 0;
    @ApiModelProperty(value = "创建时间")
    private Date crtTime;
    @ApiModelProperty(value = "修改时间")
    private Date updTime;
}
